<?php

// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');

// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return 	array(
	// autoloading model and component classes
	'import'=>array(
		'application.modules.srbac.controllers.SBaseController',
	),

	'modules'=>array(
			 'srbac' => array(
					'userclass'=>'User', //default: User
					'userid'=>'id', //default: userid
					'username'=>'username', //default:username
					'delimeter'=>'@', //default:-
					'debug'=>false, //default :false
					'pageSize'=>10, // default : 15
					'superUser' =>'Administrator', //default: Authorizer
					'css'=>'srbac.css', //default: srbac.css
					'layout'=>	'application.modules.admin_backend.views.layouts.sidebar_left', //default: application.views.layouts.main,
					//must be an existing alias
					'notAuthorizedView'=> 'srbac.views.authitem.unauthorized', // default:
					//srbac.views.authitem.unauthorized, must be an existing alias
					'alwaysAllowed'=>array(
					//default: array()
							/*'SiteLogin','SiteLogout','SiteIndex','SiteAdmin',
							'SiteError', 'SiteContact'*/
					),
					'userActions'=>array('Show','View','List'), //default: array()
					'listBoxNumberOfLines' => 15, //default : 10
					'imagesPath' => 'srbac.images', // default: srbac.images
					'imagesPack'=>'noia', //default: noia
					'iconText'=>true, // default : false
					'header'=>'srbac.views.authitem.header', //default : srbac.views.authitem.header,
					//must be an existing alias
					'footer'=>'srbac.views.authitem.footer', //default: srbac.views.authitem.footer,
					//must be an existing alias
					'showHeader'=>false, // default: false
					'showFooter'=>false, // default: false
					'alwaysAllowedPath'=>'srbac.components', // default: srbac.components
					// must be an existing alias
			)
			 
	),

	// application components
	'components'=>array(
		//for srbac
		'authManager'=>array(
		// Path to SDbAuthManager in srbac module if you want to use case insensitive
		//access checking (or CDbAuthManager for case sensitive access checking)
		'class'=>'application.modules.srbac.components.SDbAuthManager',
		// The database component used
		'connectionID'=>'db',
		// The itemTable name (default:authitem)
		'itemTable'=>'items',
		// The assignmentTable name (default:authassignment)
		'assignmentTable'=>'assignments',
		// The itemChildTable name (default:authitemchild)
		'itemChildTable'=>'itemchildren',
		),
	),

	// application-level parameters that can be accessed
	// using Yii::app()->params['paramName']
	'params'=>array(
		// this is used in contact page
	),
);